package com.fire.service;

import com.fire.domain.Student;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

public interface IStudentService {
    void add(Student student);
    void delete(String id) throws IOException;
    void update(String id,Student student) throws IOException;
    ArrayList<Student> findAll();            //无参数有返回值
    boolean isExist(String id);              //判断指定学号是否存在
    ArrayList<Integer> getfind() throws IOException;
    HashMap<Integer,ArrayList<Student>> getGroup() throws IOException;
    void daochu();
    void daoru();

    ArrayList<Student>searchName(String name);

    ArrayList<Student> searchPhone(String phone);
}
